home *** CD-ROM | disk | FTP | other *** search
-
-
-
- KGDB User Commands KGDB
-
-
-
- _________________________________________________________________
-
- NNAAMMEE
- kgdb - A kernel debugger based on GDB
-
- SSYYNNOOPPSSIISS
- kkggddbb [-_m_t_m] [_g_d_b _o_p_t_i_o_n_s] [_k_e_r_n_e_l]
-
- OOPPTTIIOONNSS
- --mmttmm Invoke the debugger for the target machine
- given by tm. If specified, this option must
- proceed all other options. The list of avail-
- able target machines include sun2, sun3, sun4,
- and spur.
-
- See the GNU GDB documentation for information about the rest
- of the available options.
-
- _________________________________________________________________
-
-
- DDEESSCCRRIIPPTTIIOONN
- KKggddbb is a version of the GNU gdb debugger modified to debug
- Sprite kernels. This manual page only describes the parts
- of kkggddbb that differ from ggddbb. The reader is referred to the
- GNU GDB documentation and gdb manual page for a complete
- description of ggddbb.
-
- DDIIFFFFEERREENNCCEESS FFRROOMM GGDDBB
- The "attach" and "detach" commands of kkggddbb differ from those
- of ggddbb.
-
- aattttaacchh machine
- The attach command of kkggddbb takes as an argument the
- hostname or internet address of a Sprite machine to
- debug. The command assumes that the specified machine
- is in the kernel debugging stub and will wait for the
- machine to enter the debugger. Once the connection to
- the machine is established, the trap condition and any
- unprinted syslog messages are displayed.
-
- ddeettaacchh [cont]
- The detach command breaks the connection between kkggddbb
- and the currently attached machine. If any argument is
- specified, the machine is continued before the connec-
- tion is detached. When used with the "attach" command,
- the "detach" command allows debugging multiple machines
- from the same kkggddbb session.
-
- AADDDDIITTIIOONNSS TTOO GGDDBB
- KKggddbb supports several commands not found in ggddbb. The com-
- mands are:
-
- ppiidd proc-id
-
-
-
- Sprite v.1.0 Printed: December 13, 1990 1
-
-
-
-
-
-
- KGDB User Commands KGDB
-
-
-
- The pid command sets the focus of the debugger on the
- process whose process id is proc-id. Once a process is
- choosen with the pid command, all stack reference com-
- mands such as "backtrace" and "frame" will reference
- this process's stack. For example, the command "pid
- 0xa1139" followed by the "backtrace" command will
- display a stack backtrace of the process with pid of
- 0xa1139. Note that proc-id can be any expression sup-
- ported by kkggddbb.
-
- rreebboooott [string]
- The reboot command reboots the current attached
- machine. The optional argument string is passed to the
- kernel routine Mach_MonReboot. Note that this command
- is the same as typing "print Mach_MonReboot(string)"
- followed by a break and a detach command except that
- the reboot command will work even if no symbol table is
- loaded.
-
- vveerrssiioonn
- The version command prints the kernel version string of
- the attached machine. This command outputs the same
- information as the command "print SpriteVersion()" but
- like the "reboot" command doesn't require a symbol
- table to be loaded.
-
- ddeebbuugg hostname
- The debug command is similar to the attach command
- differing only in the case when the specified machine
- is not already in the debugging stub. Rather than wait-
- ing for the machine to enter the debugger like the
- attach command, the debug command will force the
- machine into the debugger using the kkmmssgg program. In
- order for this command to work, the kkmmssgg program must
- be available in the current search path of kkggddbb.
- Because of its anti-social possiblities, caution is
- urged in the use of the debug command.
-
- DDEELLEETTIIOONNSS FFRROOMM GGDDBB
- Several features of ggddbb are not available in kkggddbb because
- they don't apply to kernel debugging. Missing features
- include the ability to start and kill programs with the
- "run" and "kill" commands; to change the program's environ-
- ment and terminal characteristics with the "set-env",
- "unset-env", "set-args", and "tty" commands; and to handle
- signals with "handle" and "signal" commands. Additionaly,
- ggddbb's core file processing such as the ccoorree command are also
- not available in kkggddbb.
-
-
- KKEEYYWWOORRDDSS
- gdb, kernel, debugging, kmsg
-
-
-
- Sprite v.1.0 Printed: December 13, 1990 2
-
-
-
-